package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
@TableName("t_bill_stream")
public class BillStream extends Model<BillStream> {

	private static final long	serialVersionUID	= 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long				id;
	/**
	 * 账单ID
	 */
	@TableField("bill_id")
	private Long				billId;
	/**
	 * 账单明细ID
	 */
	@TableField("bill_detail_id")
	private String				billDetailId;
	/**
	 * 支付方式
	 */
	@TableField("pay_way")
	private String				payWay;
	/**
	 * 接口地址
	 */
	@TableField("api_url")
	private String				apiUrl;
	/**
	 * 接口名称
	 */
	@TableField("api_name")
	private String				apiName;
	/**
	 * 发送内容
	 */
	@TableField("req_data")
	private String				reqData;
	/**
	 * 发送时间
	 */
	@TableField("req_time")
	private Date				reqTime;
	/**
	 * 接受内容
	 */
	@TableField("res_data")
	private String				resData;
	/**
	 * 接受时间
	 */
	@TableField("res_time")
	private Date				resTime;
	/**
	 * (S:请求外部，R：接收外部)
	 */
	@TableField("invoke_type")
	private String				invokeType;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date				createTime;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public Long getBillId() {

		return billId;
	}

	public void setBillId(Long billId) {

		this.billId = billId;
	}

	public String getBillDetailId() {

		return billDetailId;
	}

	public void setBillDetailId(String billDetailId) {

		this.billDetailId = billDetailId;
	}

	public String getPayWay() {

		return payWay;
	}

	public void setPayWay(String payWay) {

		this.payWay = payWay;
	}

	public String getApiUrl() {

		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {

		this.apiUrl = apiUrl;
	}

	public String getApiName() {

		return apiName;
	}

	public void setApiName(String apiName) {

		this.apiName = apiName;
	}

	public String getReqData() {

		return reqData;
	}

	public void setReqData(String reqData) {

		this.reqData = reqData;
	}

	public Date getReqTime() {

		return reqTime;
	}

	public void setReqTime(Date reqTime) {

		this.reqTime = reqTime;
	}

	public String getResData() {

		return resData;
	}

	public void setResData(String resData) {

		this.resData = resData;
	}

	public Date getResTime() {

		return resTime;
	}

	public void setResTime(Date resTime) {

		this.resTime = resTime;
	}

	public String getInvokeType() {

		return invokeType;
	}

	public void setInvokeType(String invokeType) {

		this.invokeType = invokeType;
	}

	public Date getCreateTime() {

		return createTime;
	}

	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {

		return this.id;
	}

	@Override
	public String toString() {

		return "BillStream{" +
				"id=" + id +
				", billId=" + billId +
				", billDetailId=" + billDetailId +
				", payWay=" + payWay +
				", apiUrl=" + apiUrl +
				", apiName=" + apiName +
				", reqData=" + reqData +
				", reqTime=" + reqTime +
				", resData=" + resData +
				", resTime=" + resTime +
				", invokeType=" + invokeType +
				", createTime=" + createTime +
				"}";
	}
}
